
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" type="text/css" href="stiliai/<?php echo input(strip_tags($conf['Stilius'])); ?>/default.css">
  <link rel="stylesheet" type="text/css" href="stiliai/system.css">
  <link rel="shortcut icon" href="favicon.ico" />

<meta name="Description" content="<?php echo $conf['Pavadinimas'].' - '.$conf['Apie'];?>" />
<title><?php echo $conf['Pavadinimas']." - " .$page; ?></title>

<?php if (isset($url['id']) && $url['id'] == 46 && (isset($url['a']) && ($url['a'] == 2 || $url['a'] == 1))) { ?>
	<script language="javascript" type="text/javascript" src="javascript/htmlarea/tiny_mce/tiny_mce.js"></script>
<?php } ?>

<script language="javascript" type="text/javascript" src="javascript/swfobject.js"></script>
<script language="javascript" type="text/javascript" src="javascript/scriptaculous/lib/prototype.js"></script>
<script language="javascript" type="text/javascript" src="javascript/scriptaculous/src/scriptaculous.js"></script>
<script language="javascript" type="text/javascript" src="javascript/pagrindinis.php"></script>

</head>

<NOSCRIPT>
	<?php klaida("Klaida","Prašome įjunkite javascript palaikymą"); ?>
	<meta http-equiv="refresh" content="0;url=javascript.html">
</NOSCRIPT>

  
<body>
<script language="javascript" type="text/javascript" src="javascript/hl/shCore.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushPhp.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushJScript.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushSql.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushXml.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushCss.js"></script>
<script language="javascript" src="javascript/boxover.js" type="text/javascript"></script>

  <div id="wrap">
<div id="index" class="pun">
  

  <!-- Reklamos kodas -->
<table width="99%" border="0" cellspacing="0" cellspacing="10" align="center">
  <tr>
    <td width="25%" rowspan="2" scope="col" valign="top">
    <div class="navigation">
    <?php
			$sql_p = mysql_query1("SELECT SQL_CACHE * FROM `".LENTELES_PRIESAGA."panel` ORDER BY `place` ASC");
			while ($row_p = mysql_fetch_assoc($sql_p)) {
				if (is_file("paneles/".$row_p['file'])) { 
				include ("paneles/".$row_p['file']);
					if (!isset($title)) { $title = $row_p['panel']; }
					if ($row_p['show'] == 'Y' && isset($text) && !empty($text)) {
						lentele_l($title,$text); unset($title,$text);
					}
					elseif (isset($text) && !empty($text)) { 
						echo $text;
						unset($text);
					}
				}
				else { echo lentele_l("Klaida","Tokios paneles nera",$row_p['file']); }
			}
			unset($sql_p,$row_p);
			?></div></td>
    <td width="80%" height="75" scope="col" ><div class="vidus"><img src="stiliai/<?php echo input(strip_tags($conf['Stilius'])); ?>/images/head.gif"  /></div></td>
  </tr>
  <tr>
    <td valign="top" ><?php
			if (!isset($_SESSION['username'])) {
			 	lentele($conf['Pavadinimas'],$conf['Apie']);
			}
			include($page.".php");
		?></td>
  </tr>
</table>

</div></div>

<script class="javascript">dp.SyntaxHighlighter.HighlightAll('code');</script>

<?php
$m2 = explode(" ", microtime());
$etime = $m2[1] + $m2[0];
$ttime = ($etime - $stime);
$ttime = number_format($ttime, 7);
if ($conf['Render'] == 1) { $ttime = "Sugeneruotas per: ".apvalinti($ttime,2)."s." ; }
else { $ttime = ''; }
copyright("$ttime\n".$conf['Copyright']."");
if (defined("LEVEL") && LEVEL > 20) { copyright("Mysql uzklausu: $mysql_num"); }
unset($extra,$meniu,$text,$ttime);
?>

</body>
</html>
